#ifndef VIEWUSRSDIALOG_H
#define VIEWUSRSDIALOG_H

#include <QWidget>
#include <QTimer>
#include"Protocol.h"
namespace Ui {
class ViewUsrsDialog;
}

class ViewUsrsDialog : public QWidget
{
    Q_OBJECT

public:
    explicit ViewUsrsDialog(QWidget *parent = nullptr);
    ~ViewUsrsDialog();

    bool validateString(const QString &input);

public slots:
    void getSearchData(const QList<UserInfo>& usrList);

    void getFlushSignal();
private slots:
    void on_searchBtn_clicked();

signals:
    void searchName(const QString&name);
    void addUsr(const QString&name);
    void deleteUsr(const QString&name);
private:
    Ui::ViewUsrsDialog *ui;

    QString m_searchName;


};

#endif // VIEWUSRSDIALOG_H
